#include <stdio.h>

int main()
{
	float F,c;
	scanf("%f",&F);
	 c = (5/9.0)*(F-32);
	 printf("%.2f",c);
	
	
	
	return 0;
}
